home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 January / PCWorld_2002-01_cd.bin / Novinky / Becher / 1. Zlaty Kalich / ZlatyKalich.exe / scripts / DefineButton2_1169 / BUTTONCONDACTION on(release).as next >
Text File  |  2001-11-12  |  2KB  |  70 lines

  1. on(release){
  2.    if(_root.poz == "x")
  3.    {
  4.       _root.pepa.gotoAndPlay("xc");
  5.    }
  6.    else if(_root.poz == "b")
  7.    {
  8.       _root.pepa.gotoAndPlay("bc");
  9.    }
  10.    else if(_root.poz == "d")
  11.    {
  12.       _root.pepa.gotoAndPlay("dc");
  13.    }
  14.    else if(_root.poz == "c")
  15.    {
  16.       if(_root.draglej == 0)
  17.       {
  18.          call("/:hide");
  19.          if(_root.izvuk == 1)
  20.          {
  21.             _root.loadzvuk.gotoAndPlay("slapkatalk_podelam");
  22.          }
  23.          else
  24.          {
  25.             _root.slapkatalk.gotoAndPlay("podelam");
  26.          }
  27.       }
  28.       else if(_root.draglej == 2)
  29.       {
  30.          if(_root.pasakstate == 2)
  31.          {
  32.             _root.stopdragall();
  33.             if(_root.izvuk == 1)
  34.             {
  35.                _root.loadzvuk.gotoAndPlay("slapkatalk_vemsemtex");
  36.             }
  37.             else
  38.             {
  39.                _root.slapkatalk.gotoAndPlay("vemsemtex");
  40.             }
  41.          }
  42.          else
  43.          {
  44.             _root.stopdragall();
  45.             if(_root.izvuk == 1)
  46.             {
  47.                _root.loadzvuk.gotoAndPlay("slapkatalk_zatimne");
  48.             }
  49.             else
  50.             {
  51.                _root.slapkatalk.gotoAndPlay("zatimne");
  52.             }
  53.          }
  54.       }
  55.       else
  56.       {
  57.          _root.stopdragall();
  58.          call("/:hide");
  59.          if(_root.izvuk == 1)
  60.          {
  61.             _root.loadzvuk.gotoAndPlay("slakpatalk_tonechci2");
  62.          }
  63.          else
  64.          {
  65.             _root.slapkatalk.gotoAndPlay("tonechci2");
  66.          }
  67.       }
  68.    }
  69. }
  70.